package com.zl.gmadmin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zl.gmadmin.entity.BlogLabel;
import com.zl.gmadmin.mapper.BlogLabelMapper;
import com.zl.gmadmin.service.BlogLabelService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ZhangLiang
 * @Date: 2021/08/25/10:54
 * @Description:
 */
@Service
public class BlogLabelServiceImpl extends ServiceImpl<BlogLabelMapper, BlogLabel> implements BlogLabelService {
    private final BlogLabelMapper blogLabelMapper;

    public BlogLabelServiceImpl(BlogLabelMapper blogLabelMapper) {
        this.blogLabelMapper = blogLabelMapper;
    }

    @Override
    public List<BlogLabel> getAll() {
        return blogLabelMapper.selectList(null);
    }
}
